package com.fhz.mvitest.model

import com.fhz.mvitest.api.YaoServiceApi
import com.fhz.mvitest.entity.BannerEntity
import com.fhz.mvitest.entity.ResponseEntity
import com.fhz.mvitest.utils.RetrofitFactory
import com.fhz.mvitest2.entity.UserEntity
import javax.inject.Inject

/**
 * 时间:2023/5/19
 * @author Mr.Feng
 * 简述: 数据层的类
 */
class LoginRepostory @Inject constructor() {

    suspend fun login(name:String,pwd:String): ResponseEntity<UserEntity>{
        return RetrofitFactory.create(YaoServiceApi::class.java).login(name,pwd)
    }
}